@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

body {
    background: #000614;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 300px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 350px 100px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 450px 20px, rgba(255,255,255,0.9), transparent);
    background-repeat: repeat;
    background-size: 600px 300px;
    animation: move-stars 100s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(1px 1px at 30px 40px, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(1px 1px at 80px 10px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 150px 80px, rgba(168, 85, 247, 0.4), transparent),
        radial-gradient(1px 1px at 250px 30px, rgba(99, 102, 241, 0.3), transparent);
    background-repeat: repeat;
    background-size: 500px 200px;
    animation: move-twinkling 150s linear infinite, pulse-stars 6s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 2;
}

@keyframes pulse-stars {
    0% { opacity: 0.2; }
    100% { opacity: 0.6; }
}

@keyframes move-stars {
    from { transform: translateY(0px) translateX(0px); }
    to { transform: translateY(-120px) translateX(-120px); }
}

@keyframes move-twinkling {
    from { transform: translateY(0px) translateX(0px); }
    to { transform: translateY(-250px) translateX(-250px); }
}

.login-container {
    backdrop-filter: blur(24px);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(71, 85, 105, 0.3);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/*.login-container::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    height: 1px;*/
/*    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);*/
/*}*/

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glow-effect {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /*animation: pulse-glow 3s ease-in-out infinite alternate;*/
}

/*@keyframes pulse-glow {*/
/*    from {*/
/*        box-shadow: */
/*            0 0 20px rgba(168, 85, 247, 0.1),*/
/*            inset 0 1px 0 rgba(255, 255, 255, 0.1);*/
/*    }*/
/*    to {*/
/*        box-shadow: */
/*            0 0 30px rgba(168, 85, 247, 0.2),*/
/*            inset 0 1px 0 rgba(255, 255, 255, 0.15);*/
/*    }*/
/*}*/

.form-group {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.3s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.input-field {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.4);
    position: relative;
}

.input-field:focus {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 
        0 0 0 3px rgba(168, 85, 247, 0.1),
        0 8px 25px rgba(168, 85, 247, 0.1);
    transform: translateY(-1px);
}

.input-field:hover {
    border-color: rgba(71, 85, 105, 0.6);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.4s;
    animation-fill-mode: both;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    box-shadow: 
        0 8px 30px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-down {
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plans-btn {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #e2e8f0;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(168, 85, 247, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.plans-btn.w-full {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
}

.plans-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.plans-btn:hover::before {
    width: 300px;
    height: 300px;
}

.plans-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.5);
    color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.plans-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.plan-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.05), transparent);
    transition: left 0.6s ease;
}

.plan-card:hover::before {
    left: 100%;
}

.plan-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(168, 85, 247, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

label {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.form-group:focus-within label {
    color: #a855f7;
    transform: translateX(3px);
}

.input-field::placeholder {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field:focus::placeholder {
    opacity: 0.6;
    transform: translateX(8px);
}

.security-blocked {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000614;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top: 2px solid #a855f7;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    pointer-events: none;
    position: relative;
}

.btn-loading .loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-glow {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.payment-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(24px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.1);
}

.status-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.4);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
}

@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .plans-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}